From 0f4663728e1627c18ce554fb477f9a73f8093d5d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 27 Oct 2015 12:53:43 -0400 Subject: [PATCH] toolitemgroup: Fix the previous change dispose can be called more than once. --- gtk/gtktoolitemgroup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c index 6d783788dc..1b734b55b7 100644 --- a/gtk/gtktoolitemgroup.c +++ b/gtk/gtktoolitemgroup.c @@ -523,7 +523,8 @@ gtk_tool_item_group_dispose (GObject *object) } g_clear_object (&priv->settings); - gtk_widget_destroy (priv->header); + if (priv->header) + gtk_widget_destroy (priv->header); g_clear_object (&priv->header); G_OBJECT_CLASS (gtk_tool_item_group_parent_class)->dispose (object); -- 2.30.2